The "Add Keywords" button (on the first card) has been modified so that it always keeps the stack and the index in the correct order.
Usage:
To use it, click on the "Add Keywords" button and supply the name of the new entry. After a few seconds, the new card will be created (in the proper place in the stack), and an index entry will also go into the proper place on the first card.
Installation:
Copy the script from "Add Keywords" (or the button itself) to the first card of your stack. [scroll down]
Notes:
1) For best results, the stack should be in sorted order. If you
have made any changes to the Programmer's notebook and have
not re-indexed the stack, then you should re-index it once. After that, the "Add Keywords" button will keep both the stack and the index in the proper order, and you'll only have to re-index if you change the name of an entry or if you delete or paste cards from the middle of the stack.
2) While re-indexing divides the cards evenly between the 2 index fields on card 1, "Add Keywords" may cause one list to become much longer than the other. For example, if you add multiple cards near the front of the stack, list 1 will grow much longer than much 2. If you re-index the stack, the lists will even out.